package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

// default package

/**
 * DocLogin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dr_message_template")
public class MessageTemplate implements Serializable {

    private static final long serialVersionUID = 8230390411258120182L;
    private Long id;
    private String content;
    private Integer type;

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * id : 主键
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Long getId() {
        return this.id;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /**
     * content : 模板消息
     */
    @Column(name = "content", length = 2000, nullable = false)
    public String getContent() {
        return this.content;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * type : 模板类型1:注册,2:提交认证资料,3:认证通过,4:认证失败5:积分推送,6:提现申请状态,7:财务审核通过,8:财务结算
     */
    @Column(name = "type", length = 11, nullable = false)
    public Integer getType() {
        return this.type;
    }

    @Override
    public String toString() {
        return "MessageTemplate{" + "id=" + this.id + ", content='" + this.content + '\'' + ", type=" + this.type + '}';
    }
}
